
app.controller('indexController', function($scope, $controller, loginService){
	$scope.status = -1;
	if(localStorage.status){
		$scope.status = localStorage.status;
	}else{
		location.href="../login.html";
	}
	
	$scope.loginName=localStorage.username;
	
	$scope.logout=function(){
		 localStorage.clear();
		 location.href="../login.html";
	}
	
	
	
});